package com.example.tmdraw;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.tenma.ventures.config.TMConstant;
import com.tenma.ventures.config.TMServerConfig;

/**
 * Created by Never Fear   on 2018\11\15 0015.
 * Never More....
 */

public class InitFgm extends Fragment {
    private View rootView;
    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        rootView=inflater.inflate(R.layout.fgm_null,null);
        Bundle bundle = new Bundle();
        bundle.putString(TMConstant.BundleParams.LOAD_URL, TMServerConfig.BASE_URL+"/application/kxk01xyyj_nhqey/h5/#/");
        FragmentTransaction transaction = getChildFragmentManager().beginTransaction();
        WebFgm webFgm = new WebFgm();
        webFgm.setArguments(bundle);
        transaction.replace(R.id.rpWeb,webFgm);
        transaction.commit();

        return rootView ;
    }
}
